Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add read only ZipStore #123

Merged
merged 6 commits into from
Feb 23, 2024
Merged

Add read only ZipStore #123

merged 6 commits into from
Feb 23, 2024

Conversation

nhz2
Copy link
Member

@nhz2 nhz2 commented Jul 14, 2023

This PR adds a new ZipStore <: AbstractStore and writezip function.

With these, zipped Zarr data can be written to any writeable IO and read from any AbstractVector{UInt8}

This should be compatible with https://zarr.readthedocs.io/en/stable/api/storage.html#zarr.storage.ZipStore

Because zip files can behave differently when their size is over 4GB, this still needs to be tested with zarr-python for very large datasets.

@nhz2 nhz2 marked this pull request as ready for review July 14, 2023 16:58
@nhz2 nhz2 requested a review from meggart October 11, 2023 15:11
src/Storage/Storage.jl Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Feb 16, 2024

Pull Request Test Coverage Report for Build 5558541626

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 56 of 56 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.8%) to 88.043%

Totals Coverage Status
Change from base Build 5461403695: 0.8%
Covered Lines: 810
Relevant Lines: 920

💛 - Coveralls

for subdir in subdirs(s, p)
_writezip(w, s, _make_prefix(p)*subdir)
end
end
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very nice interface idea to produce zip stores.

@@ -145,5 +216,35 @@ end
@test g2.attrs == Dict("groupatt"=>5)
@test g2["a1"].attrs == Dict("arratt"=>2.5)
@test g2["a1"][:,:] == reshape(1:200,10,20)

# The following test doesn't pass, but maybe should?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I will check this later. Maybe we could make a broken test from it, let's see

@meggart
Copy link
Collaborator

meggart commented Feb 23, 2024

Thanks a lot and sorry for missing this for such a long time.

@meggart meggart merged commit 8ad5dab into JuliaIO:master Feb 23, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants